<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
 <%@taglib prefix="gly" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css" type="text/css" rel="stylesheet" />

</head>
<body>
<div style="width: 700px;margin: 20px auto;text-align: right">
	<a class="btn btn-info" href="${pageContext.request.contextPath}/users/addUserUI">增加</a>
</div>
<table class="table table-bordered table-striped table-hover table-condensed" style="width:700px;margin: 20px auto">
      <thead>
      	<tr>
  				<th>角色id</th>
  				<th>角色名称</th>
  				<th>操作</th>
  		</tr>
      </thead>
      <tbody>
	<gly:forEach items="${roles}" var="role">
		<tr>
			<td>${role.id}</td>
			<td>${role.rolename}</td>
			
			<td>
				<a href="${pageContext.request.contextPath}/roles/getPersByRid?id=${role.id}">分配权限</a>
			</td>
		</tr>
	
	</gly:forEach>
	</tbody>
</table>
<script src="${pageContext.request.contextPath}/js/jquery-1.12.3.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>